<!DOCTYPE html>
<html>
<head>
	<title></title>
	<style type="text/css">
		.box{			
			display: flex;
			float: left;
			margin-left: 10px;
		}
		.box button{
			display: block;
			border-right: none;
			border:1px solid #eee;
			background-color: #fff;
		}
		.box button:first-child{
			border-radius: 5px 0 0 5px;
		}
		.box button:last-child{
			border-radius:0 5px 5px 0;
		}
	</style>
</head>
<body>
	<div class="box">
		<button>1</button>
		<button>2</button>
		<button>3</button>
		<button>4</button>
	</div>
	<div class="box">
		<button>5</button>
		<button>6</button>
		<button>7</button>
	</div>
	<div style="display: flex;
			float: left;
			margin-left: 10px;
			">
		<button style="border-radius: 5px;
			border:1px solid #eee;
			background-color: #fff;
			">8</button>
	</div>
</body>
</html>